package Component;

public class Client11 {
    public static void main(String[] args) {
        Component total=new Container("总控件");
        Component controls1=new Button("确定按钮控件");
        Component controls2=new Textbox("输入文本框控件");
        Component boxtotal=new Container("容器控件");
        Container box1=new Form("注册表单");
        Container box2=new Panel("注册界面");
        total.add(controls1);
        total.add(controls2);
        total.add(boxtotal);
        boxtotal.add(box1);
        boxtotal.add(box2);
        total.usecontrol();
    }
}
